/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.common;

import com.aaron.platform.entity.ItscPriInfo;
import java.util.ArrayList;
import java.util.List;
import org.dom4j.Attribute;
import org.dom4j.Element;
import org.dom4j.VisitorSupport;

/**
 *
 * @author chenzhuohua
 */
public class PrevilegeVisitor extends VisitorSupport {

    private final static String ELEMENT_NAME_PREVILEGE = "privilege";
    

    private List<ItscPriInfo> preInfos = new ArrayList<ItscPriInfo>();

    @Override
    public void visit(Attribute attr) {
        //String name = attr.getName();
        //String value = attr.getValue();

        //System.out.println("Attribute--> " + name + " : " + value);

    }

    @Override
    public void visit(Element element) {
//        String name = element.getName();
//        if (element.isTextOnly()) {
//            System.out
//                    .println("Element--> " + name + " : " + element.getText());
//        } else {
//            System.out.println("Element-->" + name);
//        }
        String elementName = element.getName();
    }
}
